﻿using System.IO;
using Engine.Graphics;

namespace Game
{
    public static class XT
    {
        public static Texture2D GetTexture2D(string fileName)
        {
            Texture2D texture2D = null;
            if (ModsManager.GetModEntity("CY复合手机灵活度调整", out var modEntity))
            {
                modEntity.GetAssetsFile(fileName, delegate (Stream stream)
                {
                    texture2D = Texture2D.Load(stream);
                });
            }

            return texture2D;
        }
    }
}